﻿-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2011 �?12 �?29 �?13:18
-- 服务器版�? 5.5.8
-- PHP 版本: 5.3.5

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- 数据�? `petfamily`

CREATE DATABASE `petfamily` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `petfamily`;

-- --------------------------------------------------------

--
-- 表的结构 `admin_user`
--

DROP TABLE IF EXISTS `admin_user`;
CREATE TABLE IF NOT EXISTS `admin_user` (
  `id` int(4) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) CHARACTER SET utf8 NOT NULL,
  `password` varchar(255) CHARACTER SET utf8 NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- 转存表中的数�?`admin_user`
--

INSERT INTO `admin_user` (`id`, `username`, `password`) VALUES
(1, 'admin', 'admin');

-- --------------------------------------------------------

--
-- 表的结构 `category`
--

DROP TABLE IF EXISTS `category`;
CREATE TABLE IF NOT EXISTS `category` (
  `id_category` int(4) NOT NULL AUTO_INCREMENT,
  `Category_name` varchar(255) CHARACTER SET utf8 NOT NULL,
  `id_parent` int(4) NOT NULL,
  PRIMARY KEY (`id_category`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ;

--
-- 转存表中的数�?`category`
--

INSERT INTO `category` (`id_category`, `Category_name`, `id_parent`) VALUES
(6, 'Food', 0),
(7, 'Food for cat', 6),
(8, 'Food for dog ', 6),
(9, 'Snakes', 6),
(10, 'Pabulum', 0),
(11, 'Strengthen physique', 10),
(12, 'Regulate intesines and stomach ', 10),
(13, 'Others', 10),
(14, 'Medicinal', 0),
(15, 'Conventional drugs ', 14),
(16, 'Local Nursing ', 14),
(17, 'Others', 14),
(18, 'Beauty', 0),
(19, 'For dog ', 18),
(20, 'For cat ', 18),
(21, 'Tools', 18),
(22, 'tody demo', 0),
(23, 'second tody demo', 22),
(24, 'tody three demo', 22);

-- --------------------------------------------------------

--
-- 表的结构 `order_detail`
--

DROP TABLE IF EXISTS `order_detail`;
CREATE TABLE IF NOT EXISTS `order_detail` (
  `id` int(4) NOT NULL AUTO_INCREMENT,
  `order_id` int(4) NOT NULL,
  `Product_name` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Product_images` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Product_infomation` text CHARACTER SET utf8 NOT NULL,
  `Product_price` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Product_id` int(4) NOT NULL,
  `num` int(4) NOT NULL,
  `User_id` int(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=35 ;

--
-- 转存表中的数�?`order_detail`
--

INSERT INTO `order_detail` (`id`, `order_id`, `Product_name`, `Product_images`, `Product_infomation`, `Product_price`, `Product_id`, `num`, `User_id`) VALUES
(17, 12, 'dfsfs', 'admin/uploads/示例图片_02.jpg', '', '32423', 4, 2, 2),
(18, 13, 'dfsda', 'admin/uploads/示例图片_04.jpg', '', '4234', 5, 3, 2),
(19, 14, 'dfsfs', 'admin/uploads/示例图片_02.jpg', '', '32423', 4, 2, 2),
(20, 14, 'dfsda', 'admin/uploads/示例图片_04.jpg', '', '4234', 5, 3, 2),
(21, 14, 'fghsfhsgsgffdg', 'admin/uploads/示例图片_03.jpg', '', '5353', 8, 5, 2),
(22, 15, 'ghjdgjd', 'admin/uploads/示例图片_04.jpg', '', '5434', 7, 4, 0),
(23, 16, 'dfsda', 'admin/uploads/示例图片_04.jpg', '', '4234', 5, 2, 0),
(24, 17, 'dfsfs', 'admin/uploads/示例图片_02.jpg', '', '32423', 4, 22, 2),
(25, 17, 'jfghd', 'admin/uploads/11.jpg', '', '767', 6, 4, 2),
(26, 17, 'erererertr', 'admin/uploads/Bear.bmp', '', '42423', 9, 6, 2),
(27, 19, 'dfsda', 'admin/uploads/示例图片_04.jpg', '', '4234', 5, 2, 0),
(28, 19, '测试01', 'admin/uploads/Balloon.bmp', '', '122', 10, 4, 0),
(29, 20, 'dfsfs', 'admin/uploads/示例图片_02.jpg', '', '32423', 4, 333, 0),
(30, 21, 'dfsfs', 'admin/uploads/示例图片_02.jpg', '', '32423', 4, 333, 2),
(31, 21, 'tody demo product', 'admin/uploads/示例图片_03.jpg', '', '222', 11, 222, 2),
(32, 22, 'dfsda', 'admin/uploads/示例图片_04.jpg', '', '4234', 5, 3, 2),
(33, 22, 'erererertr', 'admin/uploads/Bear.bmp', '', '42423', 9, 444, 2),
(34, 23, 'dfsfs', 'admin/uploads/示例图片_02.jpg', '', '32423', 4, 3, 2);

-- --------------------------------------------------------

--
-- 表的结构 `orders`
--

DROP TABLE IF EXISTS `orders`;
CREATE TABLE IF NOT EXISTS `orders` (
  `Order_id` int(11) NOT NULL AUTO_INCREMENT,
  `User_id` int(11) NOT NULL,
  `User_name` varchar(20) NOT NULL,
  `User_address` varchar(200) NOT NULL,
  `User_tel` int(11) NOT NULL,
  `Order_price` int(11) NOT NULL,
  `Order_date` varchar(20) DEFAULT NULL,
  `Order_remark` varchar(200) DEFAULT NULL,
  `Order_delivery` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`Order_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;

--
-- 转存表中的数�?`orders`
--

INSERT INTO `orders` (`Order_id`, `User_id`, `User_name`, `User_address`, `User_tel`, `Order_price`, `Order_date`, `Order_remark`, `Order_delivery`) VALUES
(12, 2, '', '', 0, 64846, '1324918769', '', ''),
(13, 2, '', '', 0, 12702, '1324919282', '', ''),
(14, 2, '', '', 0, 104313, '1324920063', '', ''),
(15, 0, '', '', 0, 21736, '1324980898', '', ''),
(16, 0, '', '', 0, 8468, '1324981167', '', ''),
(17, 2, '', '', 0, 970912, '1325143339', '', ''),
(18, 2, 'dfsdfsdfsdfsfsfs', 'ddd', 234141, 0, '32423423', 'dfsafsdfsa', ''),
(19, 0, 'rwerwerwerw', '32423423', 32423423, 8956, '324234', '4234234', 'radiobutton'),
(20, 0, '4242342', '234234', 234141, 10796859, '324324', '4234234', 'Get it by yourself'),
(21, 0, '????', 'dfadsfa', 234141, 10846143, '4234234', 'dddddddd', 'Get it by yourself'),
(22, 2, '23423423423', 'dfadsfa', 234141, 18848514, '32423423', '342342', 'Get it by yourself'),
(23, 2, 'aaa', 'sdsd', 123, 97269, 'wsdaf', 'dad', 'Delivery company');

-- --------------------------------------------------------

--
-- 表的结构 `products`
--

DROP TABLE IF EXISTS `products`;
CREATE TABLE IF NOT EXISTS `products` (
  `Product_id` int(20) NOT NULL AUTO_INCREMENT,
  `Product_style` varchar(20) CHARACTER SET utf8 NOT NULL,
  `Product_size` int(11) NOT NULL,
  `Product_price` int(11) NOT NULL,
  `Product_information` varchar(200) CHARACTER SET utf8 DEFAULT NULL,
  `Product_images` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Product_name` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Product_category` int(4) NOT NULL,
  PRIMARY KEY (`Product_id`),
  UNIQUE KEY `Product_id` (`Product_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;

--
-- 转存表中的数�?`products`
--

INSERT INTO `products` (`Product_id`, `Product_style`, `Product_size`, `Product_price`, `Product_information`, `Product_images`, `Product_name`, `Product_category`) VALUES
(4, '', 3423, 32423, '               dfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfsdfsfs', 'admin/uploads/示例图片_02.jpg', 'dfsfs', 7),
(5, '', 424, 4234, '                                dfdfsdfsafsdfsdfsa        ', 'admin/uploads/示例图片_04.jpg', 'dfsda', 8),
(6, '', 23423, 767, '                       sdsdfadfasdf                 ', 'admin/uploads/11.jpg', 'jfghd', 9),
(7, '', 43, 5434, '                                   dfdsfsdfsafdsafsdffsa     ', 'admin/uploads/示例图片_04.jpg', 'ghjdgjd', 7),
(8, '', 4535, 5353, '                                   dsfdfsadf     ', 'admin/uploads/示例图片_03.jpg', 'fghsfhsgsgffdg', 8),
(9, '', 4234234, 42423, '                       ewredsdfwe                 ', 'admin/uploads/Bear.bmp', 'erererertr', 6),
(10, '', 100, 122, '                                       dsfsfdsfasdf ', 'admin/uploads/Balloon.bmp', '测试01', 7),
(11, '', 222, 222, '                    2222222                    ', 'admin/uploads/示例图片_03.jpg', 'tody demo product', 23),
(12, '', 234234, 0, '                   ddddddddddd                     ', 'admin/uploads/示例图片_02.jpg', 'dfsfsdfa', 24);

-- --------------------------------------------------------

--
-- 表的结构 `users`
--

DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
  `User_id` int(11) NOT NULL AUTO_INCREMENT,
  `User_fullname` varchar(20) NOT NULL,
  `User_name` varchar(20) NOT NULL,
  `User_password` varchar(200) NOT NULL,
  `User_email` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`User_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- 转存表中的数�?`users`
--

INSERT INTO `users` (`User_id`, `User_fullname`, `User_name`, `User_password`, `User_email`) VALUES
(1, 'aaaaa', 'abc123', 'e10adc3949ba59abbe56e057f20f883e', '3242@163.com'),
(2, 'dsdfsdfsda', 'aaaaaa', '0b4e7a0e5fe84ad35fb5f95b9ceeac79', '333@163.com');

